package miracle.joker.design.factory_method;

/*
* 具体工厂
* */
public class CatFactory implements AnimalFactory{
    @Override
    public Animal createAnimal(String name) {
        return new Cat(name);
    }

    @Override
    public Animal createAnimal() {
        return new Cat();
    }
}
